package ma.ac.onousc.gestionfi.EngagementPaiement.model;

import java.io.Serializable;
import java.util.List;

import javax.persistence.DiscriminatorValue;
import javax.persistence.Entity;
import javax.persistence.NamedQuery;
import javax.persistence.OneToMany;

@Entity
@NamedQuery(name = "Marche.findByRB", query = "select march from Marche march where march.rubriqueBudgetaire=:rb")
@DiscriminatorValue("Marche")
public class Marche extends Engagement implements Serializable {

	private static final long serialVersionUID = 1L;
	private String objetMarche;

	@OneToMany(mappedBy = "marche")
	private List<LotMarche> lotMarche;

	public Marche(String objetMarche) {
		super();
		this.objetMarche = objetMarche;

	}

	public Marche() {
	}

	public String getObjetMarche() {
		return objetMarche;
	}

	public void setObjetMarche(String objetMarche) {
		this.objetMarche = objetMarche;
	}

	public List<LotMarche> getLotMarche() {
		return lotMarche;
	}

	public void setLotMarche(List<LotMarche> lotMarche) {
		this.lotMarche = lotMarche;
	}

}
